.class Lcom/instagram/android/explore/n;
.super Lcom/instagram/android/d/j/f;
.source "RecommendationManager.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/f",
        "<",
        "Ljava/util/ArrayList",
        "<",
        "Lcom/instagram/android/model/n;",
        ">;>;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/explore/p;

.field final synthetic b:Lcom/instagram/android/explore/j;


# direct methods
.method constructor <init>(Lcom/instagram/android/explore/j;Lcom/instagram/android/explore/p;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 131
    iput-object p1, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    iput-object p2, p0, Lcom/instagram/android/explore/n;->a:Lcom/instagram/android/explore/p;

    invoke-direct {p0}, Lcom/instagram/android/d/j/f;-><init>()V

    return-void
.end method


# virtual methods
.method protected a(Lcom/instagram/android/d/j/j;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/model/n;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 168
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/instagram/android/explore/j;->a:Z

    .line 170
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v1}, Lcom/instagram/android/explore/j;->d(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Queue;->addAll(Ljava/util/Collection;)Z

    .line 171
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 173
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v1}, Lcom/instagram/android/explore/j;->f(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Queue;->addAll(Ljava/util/Collection;)Z

    .line 174
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 176
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->b(Lcom/instagram/android/explore/j;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 177
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->g(Lcom/instagram/android/explore/j;)Landroid/widget/ViewAnimator;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    .line 180
    :cond_0
    invoke-super {p0, p1}, Lcom/instagram/android/d/j/f;->a(Lcom/instagram/android/d/j/j;)V

    .line 181
    return-void
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 131
    check-cast p1, Ljava/util/ArrayList;

    invoke-virtual {p0, p1}, Lcom/instagram/android/explore/n;->a(Ljava/util/ArrayList;)V

    return-void
.end method

.method protected a(Ljava/util/ArrayList;)V
    .locals 5
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/model/n;",
            ">;)V"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 135
    if-nez p1, :cond_0

    .line 136
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 139
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->b(Lcom/instagram/android/explore/j;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    .line 141
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/n;

    .line 142
    iget-object v3, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v3}, Lcom/instagram/android/explore/j;->b(Lcom/instagram/android/explore/j;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 145
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    iput-boolean v4, v0, Lcom/instagram/android/explore/j;->a:Z

    .line 147
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 148
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v2}, Lcom/instagram/android/explore/j;->d(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Queue;->addAll(Ljava/util/Collection;)Z

    .line 149
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->c(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 151
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 152
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v2}, Lcom/instagram/android/explore/j;->f(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Queue;->addAll(Ljava/util/Collection;)Z

    .line 153
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->e(Lcom/instagram/android/explore/j;)Ljava/util/Queue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Queue;->clear()V

    .line 155
    if-eqz v1, :cond_2

    .line 156
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 157
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->g(Lcom/instagram/android/explore/j;)Landroid/widget/ViewAnimator;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    .line 158
    iget-object v0, p0, Lcom/instagram/android/explore/n;->a:Lcom/instagram/android/explore/p;

    invoke-interface {v0}, Lcom/instagram/android/explore/p;->X()V

    .line 164
    :cond_2
    :goto_1
    return-void

    .line 160
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->g(Lcom/instagram/android/explore/j;)Landroid/widget/ViewAnimator;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    .line 161
    iget-object v0, p0, Lcom/instagram/android/explore/n;->b:Lcom/instagram/android/explore/j;

    invoke-static {v0}, Lcom/instagram/android/explore/j;->h(Lcom/instagram/android/explore/j;)Landroid/os/Handler;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1
.end method
